package com.hnkywl.sts.webservice.bg.request;

import com.hnkywl.sts.entity.BaseEntity;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 * 保供物资编码参数包装
 * User: ccr
 * Date: 13-5-25
 * Time: 下午1:45
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name="T_SYS_BGWZBM")
@Where(clause = "deleted!='1'")
public class BgWzbm extends BaseEntity{
    @Id
    @SequenceGenerator(name = "seqBgwzbm", allocationSize = 1, sequenceName = "SEQ_SYS_BGWZBM")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqBgwzbm")
    private Long id;

    /**
     * 操作时间
     */
    private Date czsj;
    /**
     * 编码级别
     */
    private int grade;
    /**
     * 保工公司物资编码的Id
     */
    private String codeid;
    /**
     * 编码
     */
    private String code;
    /**
     * 名称
     */
    private String name;
    /**
     * 简称
     */
    private String shortname;
    /**
     * 规格
     */
    private String spec;
    /**
     * 材质
     */
    private String material;
    /**
     * 单位
     */
    private String unit;
    /**
     * 供应商名称
     */
    private String provider;
    /**
     * 父级code
     */
    private String parentcode;
    /**
     * 图号
     */
    private String picno;
    /**
     * 操作1:新增2：修改3：禁用
     */
    private int opt;

    /**
     * 状态1：导入2：处理成功3：处理异常
     */
    private int zt = 1;

    /**
     * 异常信息
     */
    private String except;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCzsj() {
        return czsj;
    }

    public void setCzsj(Date czsj) {
        this.czsj = czsj;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public String getCodeid() {
        return codeid;
    }

    public void setCodeid(String codeid) {
        this.codeid = codeid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShortname() {
        return shortname;
    }

    public void setShortname(String shortname) {
        this.shortname = shortname;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getProvider() {
        return provider;
    }

    public void setProvider(String provider) {
        this.provider = provider;
    }

    public String getParentcode() {
        return parentcode;
    }

    public void setParentcode(String parentcode) {
        this.parentcode = parentcode;
    }

    public String getPicno() {
        return picno;
    }

    public void setPicno(String picno) {
        this.picno = picno;
    }

    public int getOpt() {
        return opt;
    }

    public void setOpt(int opt) {
        this.opt = opt;
    }

    public int getZt() {
        return zt;
    }

    public void setZt(int zt) {
        this.zt = zt;
    }

    public String getExcept() {
        return except;
    }

    public void setExcept(String except) {
        this.except = except;
    }
}
